package com.bootdo.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.system.dao.VeriCodeMapper;
import com.bootdo.system.domain.VeriCode;
import com.bootdo.system.service.VeriCodeService;



@Service("veriCodeService")
public class VeriCodeServiceImpl implements VeriCodeService {
	@Autowired
	private VeriCodeMapper veriCodeMapper;

	@Override
	public VeriCode get(Long id) {
		return veriCodeMapper.get(id);
	}

	@Override
	public VeriCode getByPhone(String phone) {
		return veriCodeMapper.getByPhone(phone);
	}

	@Override
	public int save(VeriCode code) {
		return veriCodeMapper.save(code);
	}

	@Override
	public int remove(Long id) {
		return veriCodeMapper.remove(id);
	}

	@Override
	public int removeByPhone(String phone) {
		return veriCodeMapper.removeByPhone(phone);
	}

	@Override
	public int update(VeriCode code) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<VeriCode> list(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
